package top.zuli.package03.exam01;

import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        /*//创建扫描仪对象
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个正整数");
        int number = scanner.nextInt();
        // 反转数字
        while(number>0){
            int a = number%10;
            System.out.print(a);
            number = number/10;
        }*/

        /*Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个整数：");
        int num = scanner.nextInt();
        while (num > 0){
            int a = num % 10;
            System.out.print(a);
            num = num/10;
        }*/

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int num = scanner.nextInt();
        while (num > 0 ){
            int a = num % 10;
            System.out.print(a);
            num = num/10;
        }
    }
}
